package com.yuju.account.dao.mapper;

import com.yuju.account.dao.entity.Account;
import com.yuju.account.model.RoomOrderModel;
import com.yuju.model.account.AccountModel;
import com.yuju.persist.base.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface AccountMapper extends BaseMapper<Account, String> {
	
	BigDecimal getCTMoneySum(Map<Object, Object> map);
	
	List<AccountModel> getCTReport(Map<Object, Object> map);
	
	int countCT(Map<Object, Object> map);
	
	int getAccountAmountSum(Map<Object, Object> map);
	
    int deleteByPrimaryKey(String id);
    
    List<Account> listByOrderIds(List<String> list);

    int selectCountByMap(Map<Object, Object> map);
    
    List<Account> listOrderAccount(Map<Object, Object> map);
    Integer countByMap(Map<Object, Object> map);

    List<Account> selectListByMap(Map<Object, Object> map);
    
    RoomOrderModel getRoomOrder(String id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);
    
    int updateBalanceByOrderId(Map<String,Object> map);
	int updateBalanceByRoomGuestId(Map<String,Object> map);
	
	int updateBalanceByReserveId(Map<String,Object> map);
}